package com.shenqi.language.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 词条分类对象 language_category
 *
 * @author shenqi
 * @date 2025-08-06
 */
public class Category extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 原id */
    @Excel(name = "原id")
    private Long categoryId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 别名 */
    @Excel(name = "别名")
    private String alias;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 在线 */
    @Excel(name = "在线")
    private String onLine;

    /** 图片 */
    @Excel(name = "图片")
    private String imageUrl;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setAlias(String alias)
    {
        this.alias = alias;
    }

    public String getAlias()
    {
        return alias;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setOnLine(String onLine)
    {
        this.onLine = onLine;
    }

    public String getOnLine()
    {
        return onLine;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("alias", getAlias())
            .append("sort", getSort())
            .append("onLine", getOnLine())
            .append("remark", getRemark())
            .append("imageUrl", getImageUrl())
            .toString();
    }
}
